﻿using System.Web;
using System.Web.Mvc;

namespace BookClubPortal
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            /// example: create specific custom error filter
            //filters.Add(new HandleErrorAttribute
            //{
            //    ExceptionType = typeof(HttpRequestValidationException),
            //    View = "Error",
            //    Order = 2
            //});
            filters.Add(new HandleErrorAttribute());
        }
    }
}